package cn.terminus.data.customer.contractselldefyoverdueapplicationinfo.dao;

import cn.terminus.common.customer.bean.contractselldefyoverdueapplicationinfo.dto.ContractSellDefyOverdueApplicationInfoNewDto;
import cn.terminus.common.customer.bean.contractselldefyoverdueapplicationinfo.dto.ContractSellDefyOverdueApplicationInfoEditDto;
import cn.terminus.common.customer.bean.contractselldefyoverdueapplicationinfo.dto.ContractSellDefyOverdueApplicationInfoQueryDto;
import cn.terminus.common.customer.bean.contractselldefyoverdueapplicationinfo.dto.ContractSellDefyOverdueApplicationInfoDeleteDto;
import cn.terminus.common.customer.bean.contractselldefyoverdueapplicationinfo.dto.ContractSellDefyOverdueApplicationInfoGetsDto;
import cn.terminus.common.customer.bean.contractselldefyoverdueapplicationinfo.dto.ContractSellDefyOverdueApplicationInfoResultDto;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;

import java.util.List;

/**
 * 合同出售办证违约(ContractSellDefyOverdueApplicationInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:18:32
 */
public interface ContractSellDefyOverdueApplicationInfoDao {

    /**
     * 新增
     *
     * @param dto
     * @return
     */
    Integer add(ContractSellDefyOverdueApplicationInfoNewDto dto);

    /**
     * 更新
     *
     * @param dto
     * @return
     */
    Integer update(ContractSellDefyOverdueApplicationInfoEditDto dto);


    /**
     * gets
     *
     * @param dto
     * @return
     */
    List<ContractSellDefyOverdueApplicationInfoResultDto> gets(ContractSellDefyOverdueApplicationInfoGetsDto dto);

    /**
     * 删除
     *
     * @param dto
     * @return
     */
    Integer delete(ContractSellDefyOverdueApplicationInfoDeleteDto dto);

    /**
     * 查询
     *
     * @param dto
     * @return
     */
    List<ContractSellDefyOverdueApplicationInfoResultDto> query(ContractSellDefyOverdueApplicationInfoQueryDto dto);

    /**
     * 分页查询
     *
     * @param dto
     * @param page
     * @return
     */
    TerminusPageAble<ContractSellDefyOverdueApplicationInfoResultDto> page(ContractSellDefyOverdueApplicationInfoQueryDto dto, TerminusPageInfo page);

    Integer deleteWithContractId(Long id);
}
